

$("#btn_down").click(function(){
	var html = $("#paper_content").html();
	var id = $("#test_id").val();
	var json = "{\"id\":\""+id+"\"}";
	window.location.href = ctx +"/question/directDownRes/"+id;
});

function HTMLEncode(str) 
{ 
	var s = ""; 
	if(str.length == 0) return ""; 
	s = str.replace(/&/g,"&"); 
	s = s.replace(/</g,"<"); 
	s = s.replace(/>/g,">"); 
	s = s.replace(/ /g," "); 
	s = s.replace(/\'/g,"'"); 
	s = s.replace(/\"/g,"'"); 
	s = s.replace("<br>","");
	return s; 
} 